Bucket Creation
AutomatR.AWS.Activities.BucketCreationActivity
The "Bucket Creation" activity in AutomatR is part of the AWS S3 (Simple Storage Service) activities package, allowing automation processes to create a new S3 bucket within Amazon Web Services (AWS). This activity streamlines the process of setting up storage for your data in the cloud.
Properties
Name | Description |
---|---|
Input | |
Access Key ID | Provides the encrypted access key ID for your AWS account, enabling connection to the Amazon S3 service. String variables containing the access key ID. |
Secret Access Key | Provides the encrypted secret access key for your AWS account, enabling connection to the Amazon S3 service. String variables containing the secret access key. |
Region | Specifies the Amazon S3 region in which the bucket is to be created. Use the RegionEndpoint enumeration to set the region. |
Bucket Name | Specifies the name of the S3 bucket to be created. Follow S3 bucket naming conventions. String variables containing the bucket name. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Bucket Creation" activity. Useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the wait time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the result of the "Bucket Creation" operation, indicating whether the bucket was successfully created or any encountered errors. Variables of relevant types (e.g., Boolean variables) to store the operation result. |
How to use:
- Drag and drop the "Bucket Creation" activity onto the workflow.
- Configure the properties by providing the required inputs, such as access key ID, secret access key, region, and the desired bucket name.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to create the specified S3 bucket within AWS.
Example: Consider an example where the "Bucket Creation" activity is used to create a new S3 bucket named "my-automatr-bucket" in the US West (Oregon) region:
Bucket Creation:
Display Name: "Create AutomatR Bucket"
Access Key ID: "**************"
Secret Access Key: "**************"
Region: "us-west-2"
Bucket Name: "my-automatr-bucket"
Result: isBucketCreated
In this example, the activity attempts to create an S3 bucket named "my-automatr-bucket" in the specified AWS region. The result of the operation (success or failure) is stored in the Boolean variable "isBucketCreated" for further handling in the workflow.